<template>
  <div class="inputField">
    <!-- 输入框 -->
    <p>{{ item.name }}</p>
    <el-input
      :value="item.value"
      placeholder="请输入内容"
      @input="changevalue(item.name, $event)"
    />
  </div>
</template>
<script>
export default {
  props: {
    item: { type: Object, require: true }
  },
  // 接收改变value值的函数
  inject: ['changevalue']
}
</script>
<style scoped lang="scss"></style>
